package com.cy.detectsys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cy.detectsys.entity.ProbeResult;
import com.cy.detectsys.entity.vo.ProdeDataVo;
import com.cy.detectsys.service.ProbeResultService;
import com.cy.detectsys.mapper.ProbeResultMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author asus
* @description 针对表【probe_result(Azure探测结果表)】的数据库操作Service实现
* @createDate 2024-06-12 17:19:09
*/
@Service
public class ProbeResultServiceImpl extends ServiceImpl<ProbeResultMapper, ProbeResult>
    implements ProbeResultService{

    @Resource
    ProbeResultMapper probeResultMapper;
    @Override
    public List<ProbeResult> getContryProbe() {
        return probeResultMapper.getContryProbe();
    }

    @Override
    public List<ProbeResult> probeResultService() {
        return probeResultMapper.probeResultService();
    }

    @Override
    public List<ProbeResult> getPortCount() {

        return probeResultMapper.getPortCount();
    }


    @Override
    public List<ProbeResult> assetProbeDataList(ProdeDataVo prodeDataVo) {
        prodeDataVo.setPageSize((prodeDataVo.getPageSize()-1)* prodeDataVo.getPageNum());
        return probeResultMapper.assetProbeDataList(prodeDataVo);
    }
}




